/**
 * 
 */
package br.srv.full.entities.address;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OrderBy;
import javax.persistence.Table;

/**
 * @author Carlos Delfino
 * 
 */
@Entity
@Table(name = "addresstype")
public class AddressType implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 9196354503157248791L;
	
	
	@Id
	@Column(length = 4)
	private String type;
	
	
	@Column(length = 10, unique = true)
	@OrderBy
	private String description;
	
	
	/**
	 * @return the type
	 */
	public String getType() {
		return type;
	}
	/**
	 * @param p_type the type to set
	 */
	public void setType(String p_type) {
		type = p_type;
	}
	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}
	/**
	 * @param p_description the description to set
	 */
	public void setDescription(String p_description) {
		description = p_description;
	}
}
